module.exports = [
  {
    // Beacon 请求
    name: 'Beacon',
    document: 'https://developer.mozilla.org/en-US/docs/Web/API/Beacon_API',
    url: (bp) => `${bp}/webapi/beacon`,
    api: 'beacon'
  }, {
    // 后台任务 API
    name: 'Background Task',
    document: 'https://developer.mozilla.org/en-US/docs/Web/API/Background_Tasks_API',
    url: (bp) => `${bp}/webapi/backgroundTask`,
    api: 'backgroundTask'
  }, {
    // js 控制的 css 字体加载
    name: 'Css Font Loading',
    document: 'https://developer.mozilla.org/en-US/docs/Web/API/CSS_Font_Loading_API',
    url: (bp) => `${bp}/webapi/cssFontLoading`,
    api: 'cssFontLoading'
  }, {
    // 剪切板控制 API
    name: 'Clipboard',
    document: 'https://developer.mozilla.org/en-US/docs/Web/API/Clipboard_API',
    url: (bp) => `${bp}/webapi/clipboard`,
    api: 'clipboard'
  }, {
    // 加密媒体扩展 API
    name: 'Encrypted Media Extensions API',
    document: 'https://developer.mozilla.org/en-US/docs/Web/API/Encrypted_Media_Extensions_API',
    url: (bp) => `${bp}/webapi/encryptedMediaExtension`,
    api: 'encryptedMediaExtension'
  }, {
    // File API
    name: 'File API',
    document: 'https://www.w3.org/TR/FileAPI/',
    url: (bp) => `${bp}/webapi/file`,
    api: 'file'
  }, {
    // Geolocation API
    name: 'Geolocation API',
    document: 'https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API',
    url: (bp) => `${bp}/webapi/geolocation`,
    api: 'geolocation'
  }, {
    // 高分辨率时间 highResolutionTime API
    name: 'High Resolution Time',
    document: 'https://developer.mozilla.org/en-US/docs/Web/API/Performance',
    url: (bp) => `${bp}/webapi/highResolutionTime`,
    api: 'highResolutionTime'
  }, {
    // Image Capture API
    name: 'Image Capture',
    document: 'https://www.w3.org/TR/2017/WD-image-capture-20170621/',
    url: (bp) => `${bp}/webapi/imageCapture`,
    api: 'imageCapture'
  }, {
    // indexedDB API
    name: 'indexeDB',
    document: 'https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API',
    url: (bp) => `${bp}/webapi/indexedDB`,
    api: 'indexedDB'
  }, {
    // intersection Observer API 交叉点观察者API
    name: 'intersection Observer API',
    document: 'https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API',
    url: (bp) => `${bp}/webapi/intersectionObserver`,
    api: 'intersectionObserver'
  }, {
    // Media Capabilities API
    name: 'Media Capabilities API',
    document: 'https://developer.mozilla.org/en-US/docs/Web/API/Media_Capabilities_API',
    url: (bp) => `${bp}/webapi/mediaCapabilities`,
    api: 'mediaCapabilities'
  }, {
    // Media Capture And Stream API(Media Stream API)
    name: 'Media Capture and Stream',
    document: 'https://developer.mozilla.org/en-US/docs/Web/API/Media_Streams_API',
    url: (bp) => `${bp}/webapi/mediaCaptureAndStream`,
    api: 'mediaCaptureAndStream'
  }, {
    // 媒体资源扩展 API
    name: 'Media Source Extension API',
    document: 'https://www.w3.org/TR/2016/REC-media-source-20161117/',
    url: (bp) => `${bp}/webapi/mediaSourceExtension`,
    api: 'mediaSourceExtension'
  }, {
    // 媒体流录制 API 
    name: 'Media Stream Recording',
    document: 'https://www.w3.org/TR/2017/WD-mediastream-recording-20170621/',
    url: (bp) => `${bp}/webapi/mediaStreamRecording`,
    api: 'mediaStreamRecording'
  }, {
    // 基于导航的时间信息 API
    name: 'Navigation Timing API',
    document: 'https://www.w3.org/TR/2019/WD-navigation-timing-2-20190308/#introduction',
    url: (bp) => `${bp}/webapi/navigationTiming`,
    api: 'navigationTiming'
  }, {
    // networkInfomation API （兼容差）
    name: 'network Infomation API',
    document: 'http://wicg.github.io/netinfo/',
    url: (bp) => `${bp}/webapi/networkInfomation`,
    api: 'networkInfomation'
  }, {
    // 页面显示性 Page visibility API
    name: 'Page Visibility API',
    document: 'https://www.w3.org/TR/2017/PR-page-visibility-2-20171017/',
    url: (bp) => `${bp}/webapi/pageVisibility`,
    api: 'pageVisibility'
  }, {
    // 性能API
    name: 'performance API',
    document: 'https://developer.mozilla.org/en-US/docs/Web/API/Performance_API',
    url: (bp) => `${bp}/webapi/performance`,
    api: 'performance'
  }, {
    // 性能时间线API
    name: 'performance Timeline API',
    document: 'https://www.w3.org/TR/2019/WD-performance-timeline-2-20190423/',
    url: (bp) => `${bp}/webapi/performanceTimeline`,
    api: 'performanceTimeline'
  }, {
    // 权限API
    name: 'permissions API',
    document: 'https://www.w3.org/TR/2017/WD-permissions-20170925/',
    url: (bp) => `${bp}/webapi/permissions`,
    api: 'permissions'
  }, {
    // 移动端触碰事件集合
    name: 'pointer Event',
    document: 'https://www.w3.org/TR/2019/REC-pointerevents2-20190404/',
    url: (dp) => `${dp}/webapi/pointerEvent`,
    api: 'pointerEvent'
  }, {
    // Pointer Lock APi
    name: 'pointer Lock API',
    document: 'https://www.w3.org/TR/2019/WD-pointerlock-2-20190606/',
    url: (bp) => `${bp}/webapi/pointerLock`,
    api: 'pointerLock'
  }, {
    // Push API
    name: 'Push API',
    document: 'https://www.w3.org/TR/2019/WD-push-api-20190603/',
    url: (dp) => `${dp}/webapi/push`,
    api: 'push'
  }, {
    // Resize Observer API
    name: 'Resize Observer API',
    document: 'https://developer.mozilla.org/en-US/docs/Web/API/Resize_Observer_API',
    url: dp => `${dp}/webapi/ResizeObserverAPI`,
    api: 'ResizeObserverAPI'
  }, {
    // Resource Timing API
    name: 'Resource Timing API',
    document: 'https://www.w3.org/TR/2019/WD-resource-timing-2-20190626/',
    url: (dp) => `${dp}/webapi/resourceTiming`,
    api: 'resourceTiming'
  }, {
    // Screen Capture API
    name: 'Screen Capture API',
    document: 'https://developer.mozilla.org/en-US/docs/Web/API/Screen_Capture_API',
    url: dp => `${dp}/webapi/ScreenCaptureAPI`,
    api: 'ScreenCaptureAPI'
  }, {
    // Service Worker API
    name:'Service Worker API',
    document: 'https://w3c.github.io/ServiceWorker/',
    url: (dp) => `${dp}/webapi/serviceWorker`,
    api: 'serviceWorker'
  }, {
    // Stream API
    name: 'Stream API',
    api: 'Stream',
    document: 'https://developer.mozilla.org/en-US/docs/Web/API/Streams_API',
    subLink: [{
      name: 'simple-pump',
      document: 'https://github.com/mdn/dom-examples/blob/master/streams/simple-pump/index.html',
      url: dp => `${dp}/webapi/Stream/simplePump`,
      api: 'simplePump'
    }, {
      name: 'simple-random-stream',
      document: 'https://github.com/mdn/dom-examples/blob/master/streams/simple-random-stream/index.html',
      url: dp => `${dp}/webapi/Stream/simpleRandomStream`,
      api: 'simpleRandomStream'
    }, {
      name: 'simple-tee-stream',
      document: 'https://github.com/mdn/dom-examples/blob/master/streams/simple-tee-example/index.html',
      url: dp => `${dp}/webapi/Stream/simpleTeeStream`,
      api: 'simpleTeeStream'
    }, {
      name: 'simple-write',
      document: 'https://github.com/mdn/dom-examples/blob/master/streams/simple-writer/index.html',
      url: dp => `${dp}/webapi/Stream/simpleWrite`,
      api: 'simpleWrite'
    }, {
      name: 'string-transform-stream',
      document: 'https://github.com/mdn/dom-examples/blob/master/streams/strings-transform-stream/index.html',
      url: dp => `${dp}/webapi/Stream/stringTransformStream`,
      api: 'stringTransformStream'
    }, {
      name: 'png-transform-stream',
      document: 'https://github.com/mdn/dom-examples/blob/master/streams/png-transform-stream/png-transform-stream.js',
      url: dp => `${dp}/webapi/Stream/pngTransformStream`,
      api: 'pngTransformStream'
    }, {
      name: 'grayscale-png',
      document: 'https://github.com/mdn/dom-examples/blob/master/streams/grayscale-png/index.html',
      url: dp => `${dp}/webapi/Stream/grayscalePng`,
      api: 'grayscalePng'
    }]
  }, {
    name: 'Web Animation Api',
    document: 'https://developer.mozilla.org/en-US/docs/Web/API/Web_Animations_API',
    subLink: [{
      name: 'Alice Animation',
      document: 'https://developer.mozilla.org/en-US/docs/Web/API/Web_Animations_API/Using_the_Web_Animations_API',
      url: dp => `${dp}/webapi/WebAnimationApi/AliceAnimation`,
      api: 'AliceAnimation'
    }, {
      name: 'Expand Element Config',
      document: 'https://mozdevs.github.io/Animation-examples/',
      url: dp => `${dp}/webapi/WebAnimationApi/ExpandElementConfig`,
      api: 'ExpandElementConfig'
    }]
  }, {
    name: 'Web Notification',
    document: '',
    url: dp => `${dp}/webapi/WebNotificationApi/WebNotificationApi`,
    api: 'WebNotificationApi'
  }, {
    // 网络分享API
    name: 'Web Share Api',
    document: 'https://developer.mozilla.org/en-US/docs/Web/API/Web_Share_API',
    url: dp => `${dp}/webapi/WebShareApi/WebShareApi`,
    api: 'WebShareApi'
  }, {
    // WebSocket 01
    name: 'WebSocket 01',
    document: 'https://developer.mozilla.org/zh-CN/docs/Web/API/Websockets_API',
    url: (dp) => `${dp}/webapi/websocket01`,
    api: 'websocket01'
  }, {
    // WebSocket 02
    name: 'WebSocket 02',
    document: 'https://developer.mozilla.org/zh-CN/docs/Web/API/Websockets_API',
    url: (dp) => `${dp}/webapi/websocket02`,
    api: 'websocket02'
  }, {
    // audio Api（多个api标准一同构成）
    name: 'Web Audio Api',
    document: 'https://developer.mozilla.org/en-US/docs/Web/API',
    url: (dp) => `${dp}/webapi/WebAudioApi`,
    api: 'audioApi'
  }, {
    // 工作线程API
    name: 'Web Worker API',
    document: 'https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API',
    subLink: [{
      // 专用线程
      name: 'Dedicated Workers',
      document: 'https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers#worker_feature_detection',
      url: dp => `${dp}/webapi/WebWorkerApi/DedicatedWorkers`,
      api: 'DedicatedWorkers'
    }]
  }
]